#pragma once
#include "CDependencyObject.h"
#include "XamlQualifiedObject.h"
#include "XamlProperty.h"

class CEventHandler :
	public CDependencyObject
{

private: 
	xshared_ptr<XamlQualifiedObject> m_spEventRoot;
	xshared_ptr<XamlProperty> m_spEventInfo;
	xshared_ptr<CXString> m_spEventHandlerName;

	CEventHandler(CCoreServices * pCore);
public: 
	static HRESULT Create(CDependencyObject * * ppObject, CREATEPARAMETERS * pCreate);
	virtual XUINT32 GetTypeIndex() const;
	virtual XINT32 DoesAllowMultipleAssociation();
	HRESULT get_EventRoot(xshared_ptr<XamlQualifiedObject> & spEventRoot);
	HRESULT get_EventInfo(xshared_ptr<XamlProperty> & spEventInfo);
	HRESULT get_EventHandlerName(xshared_ptr<CXString> & spEventHandlerName);



};